﻿package com.javaPattern.Observer;

class Father implements Observer {
	public void update(Children child) {
		if (child.getState().equals("fight")) {
			System.out.println("告诉Father，他和别人打架了");
		} else if (child.getState().equals("scholarship")) {
			System.out.println("告诉Father,他得到了奖学金");
		}
	}
}
